package edu.whu.learneur.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 浏览表
 * </p>
 *
 * @author learneur
 * @since 2022-11-15
 */
@Getter
@Setter
@TableName("learneur_visit")
public class Visit implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 浏览链接
     */
    private String visitUrl;

    /**
     * IP
     */
    private String visitIp;

    /**
     * User-Agent
     */
    private String visitUa;

    /**
     * 城市
     */
    private String visitCity;

    /**
     * 设备唯一标识
     */
    private String visitDeviceId;

    /**
     * 浏览者 id
     */
    private Long visitUserId;

    /**
     * 上游链接
     */
    private String visitRefererUrl;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    /**
     * 过期时间
     */
    private LocalDateTime expiredTime;
}
